How to extract a substring until newline character from a string

join shbcf.ru